.container {
  display: flex;
  flex-wrap: wrap;
  margin-top: 20px;
  gap: 32px;
  justify-content: center;

  @media screen and (max-width: 1280px) {
    gap: 24px;
  }
  @media screen and (max-width: 395px) {
    gap: 20px;
    margin-bottom: 34px;
  }
}

.painting_container {
  position: relative;
  max-width: 392px;
  max-height: 260px;
  overflow: hidden;

  &:hover .default_info {
    transform: translateY(82px);
  }

  &:hover .hover_info {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
  }

  &:hover .painting_img {
    transform: scale(1.05);
  }
  @media screen and (max-width: 856px) {
    max-width: 352px;
    max-height: 220px;
  }
  @media screen and (max-width: 395px) {
    width: 280px;
    height: 185px;
  }
}
.sideArrow {
  display: none;
  @media screen and (max-width: 856px) {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--gallery-year-color);
    height: 66px;
    width: 24px;
    display: grid;
    place-items: center;
  }
  @media screen and (max-width: 395px) {
    height: 45px;
    width: 24px;
  }
}
.painting_img {
  width: 392px;
  height: 260px;
  object-fit: cover;
  transition: transform 0.5s ease;

  @media screen and (max-width: 1280px) {
    width: 352px;
    height: 220px;
  }

  @media screen and (max-width: 856px) {
    width: 352px;
    height: 220px;
  }
  @media screen and (max-width: 395px) {
    width: 280px;
    height: 185px;
  }
}
.img_box {
  object-fit: cover;
  transition: transform 0.5s ease;
  width: 392px;
  height: 260px;
  @media screen and (max-width: 1280px) {
    width: 352px;
    height: 220px;
  }

  @media screen and (max-width: 856px) {
    width: 352px;
    height: 220px;
  }
  @media screen and (max-width: 395px) {
    width: 280px;
    height: 185px;
  }
}
.painting_info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 300px;
  height: 82px;
  background-color: var(--background-color);
  padding: 20px 0px 0px 20px;
  box-sizing: border-box;
  z-index: 999;

  @media screen and (max-width: 856px) {
    padding: 12px 0px 0px 12px;
    max-width: 300px;
    max-height: 66px;
  }
  @media screen and (max-width: 395px) {
    padding: 8px 0px 0px 20px;
    max-width: 236px;
    max-height: 45px;
  }
}

.painting_strip {
  position: absolute;
  top: 20px;
  left: 0;
  height: 42px;
  border: var(--strip-border-color);
  z-index: 10000;
  @media screen and (max-width: 856px) {
    display: none;
  }
}

.painting_name,
.painting_author {
  font-family: 'Cormorant SC', sans-serif;
  font-size: 16px;
  line-height: 19.38px;
  font-weight: 500;
  color: var(--text-color);
  margin: 0;
  text-transform: uppercase;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  @media screen and (max-width: 395px) {
    font-size: 12px;
    line-height: 14.53px;
  }
}

.painting_created,
.painting_location {
  padding-top: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 14.52px;
  text-transform: uppercase;
  color: var(--gallery-year-color);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  @media screen and (max-width: 395px) {
    font-size: 12px;
    line-height: 9.68px;
    padding-top: 4px;
  }
}

.default_info,
.hover_info {
  transition: all 0.5s ease;
  width: calc(100% - 20px);
  transition: all 0.5s ease;
}

.default_info {
  position: relative;
  top: 0;
}

.hover_info {
  position: absolute;
  top: 20px;
  left: 20px;
  visibility: hidden;
  opacity: 0;
  transform: translateX(-300px);
  @media screen and (max-width: 856px) {
    top: 12px;
  }
  @media screen and (max-width: 395px) {
    top: 8px;
  }
}
.searchQuery {
  color: var(--input-text-color);
}
.tryAgain {
  color: #9c9c9c;
  font-size: 14px;
  line-height: 19.6px;
}

// для себя сделать на гридах
